package com.sgb.kjwl.model.entity.enterprise;

import com.chad.library.adapter.base.entity.MultiItemEntity;
import com.swgk.core.base.model.entity.VideoBean;
import com.sgb.kjwl.model.entity.transport.SingleItemConstant;

import java.util.List;

public class TeamChangeEntity implements MultiItemEntity {


    /**
     * phone : 18439424296
     * createTime : 1606274798625
     * userNo : 1320903350107115520
     * headImage : null
     * name : 那家大团队
     * mainBusiness : null
     * id : 104
     */

    private String phone;
    private long createTime;
    private String userNo;
    private String headImage;
    private String name;
    private String mainBusiness;
    private long id;
    private String teamAuth;
    private String personalAuth;
    private String linkMan;
    private String logo;
    private List<VideoBean> videos;

    public String getLogo() {
        return logo;
    }

    public void setLogo(String logo) {
        this.logo = logo;
    }

    public String getLinkman() {
        return linkMan;
    }

    public void setLinkman(String linkman) {
        this.linkMan = linkman;
    }

    public void setId(long id) {
        this.id = id;
    }

    public String getTeamAuth() {
        return teamAuth;
    }

    public void setTeamAuth(String teamAuth) {
        this.teamAuth = teamAuth;
    }

    public String getPersonalAuth() {
        return personalAuth;
    }

    public void setPersonalAuth(String personalAuth) {
        this.personalAuth = personalAuth;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public long getCreateTime() {
        return createTime;
    }

    public void setCreateTime(long createTime) {
        this.createTime = createTime;
    }

    public String getUserNo() {
        return userNo;
    }

    public void setUserNo(String userNo) {
        this.userNo = userNo;
    }

    public String getHeadImage() {
        return headImage;
    }

    public void setHeadImage(String headImage) {
        this.headImage = headImage;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getMainBusiness() {
        return mainBusiness;
    }

    public void setMainBusiness(String mainBusiness) {
        this.mainBusiness = mainBusiness;
    }

    public long getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public List<VideoBean> getVideos() {
        return videos;
    }

    public void setVideos(List<VideoBean> videos) {
        this.videos = videos;
    }

    @Override
    public int getItemType() {
        //普通列表信息
        int itemType = SingleItemConstant.TYPE_ONE;
        if (videos != null && videos.size() == 1) {
            //单图
            itemType = SingleItemConstant.TYPE_THREE;
        } else if (videos != null) {
            //多图
            itemType = SingleItemConstant.TYPE_TWO;
        }
        return itemType;
    }

}
